package _interview150;

/**
 * 392. 判断子序列
 */
public class No392 {
    public boolean isSubsequence(String s, String t) {
        int is = 0;
        for (int i = 0; i < t.length() && is < s.length(); i++) {
            if (t.charAt(i) == s.charAt(is)) is++;
        }
        return is == s.length();
    }
}
